<%@ page import="mybatis.services.SubjectService" %>
<%@ page import="mybatis.services.GradeService" %>
<%@ page import="mybatis.util.StrUtil" %><%--
  Created by IntelliJ IDEA.
  User: Dell
  Date: 2022/7/4
  Time: 16:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%@include file="/checkLogin.jsp"%>
<%
   int id = StrUtil.toInt( request.getParameter("id"));
    int delate = GradeService.ME.delete(id);
    if (delate>0){
        out.print("<script>alert('删除成功');window.location.replace('welcome.jsp')</script>");
    }else {
        out.print("<script>alert('删除失败');window.location.replace('welcome.jsp')</script>");
    }


%>

</body>
</html>

